package cn.jingyuan.owl.utils.core.exceptions;

import cn.jingyuan.owl.utils.core.StringUtils;

/**
 * 工具类异常
 */
public class UtilsException extends RuntimeException {

    public UtilsException(Throwable e) {
        super(ExceptionUtils.getMessage(e), e);
    }

    public UtilsException(String message) {
        super(message);
    }

    public UtilsException(String messageTemplate, Object... params) {
        super(StringUtils.format(messageTemplate, params));
    }

    public UtilsException(String message, Throwable throwable) {
        super(message, throwable);
    }

    public UtilsException(Throwable throwable, String messageTemplate, Object... params) {
        super(StringUtils.format(messageTemplate, params), throwable);
    }

}
